package com.leigang.common.parent.utils;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

/**
 * @author leig-a
 * @version 1.0
 * @desc
 * @date 2023/3/6 16:36
 */
public class IdUtils {
    public static String generate(){
        Snowflake snowflake = IdUtil.getSnowflake(1, 1);
        long nextId = snowflake.nextId();
        return String.valueOf(nextId);
    }
}
